package com.acegear.horizon.utils;

import java.security.SecureRandom;
import java.util.Random;

/**
 * Created by wangsike on 2016/12/16.
 */
public final class StringUtil {
    private static Random random = new SecureRandom();

    public static String randomNumeric(Integer len) {
        return random
                .ints(len, 0, 10)
                .mapToObj(String::valueOf)
                .reduce((s, s1) -> s + s1).get();
    }
}
